package com.service.impl;

import java.util.List;

import com.bean.Users;
import com.dao.UsersDAO;
import com.service.UserService;
import com.util.Page;

public class UserServiceImpl implements UserService {
	private UsersDAO userDao;

	public UsersDAO getUserDao() {
		return userDao;
	}

	public void setUserDao(UsersDAO userDao) {
		this.userDao = userDao;
	}

	@Override
	public List<Users> findAll(Page page) {
		return userDao.findAll(page);
	}

	@Override
	public void save(Users transientInstance) {
		// TODO Auto-generated method stub
		userDao.save(transientInstance);
	}

	@Override
	public void saveBatch(List entities)throws Exception{
		// TODO Auto-generated method stub
		userDao.saveBatch(entities);
	}

	@Override
	public void delete(Users persistentInstance) {
		// TODO Auto-generated method stub
		userDao.delete(persistentInstance);
	}

	@Override
	public void deleteBatch(List entities) {
		// TODO Auto-generated method stub
		userDao.deleteBatch(entities);
	}

	@Override
	public List findByExample(Users instance) {
		// TODO Auto-generated method stub
		return userDao.findByExample(instance);
	}

	@Override
	public List findByQuery(Users user,Page page) {
		// TODO Auto-generated method stub
		return userDao.findByQuery(user,page);
	}

	@Override
	public List findByUsername(Object username) {
		// TODO Auto-generated method stub
		return null;
	}

}
